
 From CONFIG.SYS:

      DEVICE=[d:][path]Cfg.Com CommandName [Options] [;CommandName [Options]
         [; ... ]]

 From the DOS command line or batch file:

      [d:][path]Cfg CommandName [Options] [;CommandName [Options] [; ... ]]

Global Switches
───────────────
 /Bn        Base switch.  You may select the desired number system base to
            use.  Some commands specifically require decimal or hexadecimal
            input.  The default number system is base 10.  The "n" specifies
            the decimal number representing the new number base.  Valid values
            for "n" are 2, 8, 10 and 16.  (Example: /B16)

 /Dn        Divisor switch.  You may select an optional block size for
            ErrorLevel reporting of commands.  The default block size is 1
            unless a different default is given in the specific command
            section.  This allows returning a valid ErrorLevel for a value
            that is greater than 255.  The "n" specifies the decimal number by
            which the result is divided.  Valid values for "n" range from 1 to
            65535.  (Example: /D8192)

 /E[+]      Display the exit ErrorLevel.  The "+" option will display extended
   [@]      ErrorLevel information including the command and subcommand being
   [!]      executed.  The "@" option places the output ErrorLevel in the
   [E]      environment variable "EL".  By default, this will be in the master
            environment.  Use the /2 switch to place it in the environment of
            a secondary command processor.  Use the "!" option to specify
            which of the possible ErrorLevels to return in MultiCommand.  Use
            the "E" option with "@" if you want the basic ErrorLevel displayed
            with environment output.  The order of the options does not
            matter.

 /Q         Quiet switch.  Commands will not display character output if this
            is used.  This switch may be used with the /@EnVar switch, but has
            no effect on the /E and /E+ switch output or error output.

 /1[A|B]    Use the primary or master environment.  This is the default and
            overrides the /2 switch.  See the CFG.ADD file for an explanation
            of the "A" and "B" options for this switch.

 /2         Use the secondary or parent environment.

 /@[=]EnVar Environment output switch.  Place ASCII result in the DOS
            environment variable "EnVar".  No spaces are allowed between the
            "@", the "=" (if used) and the environment variable name.  The
            rules for environment variables are the same as for the DOS SET
            command except that mixed case is permitted for the variable name
            by default.  The "=" option forces CFG to capitalize "EnVar" to
            ensure compatibility with the DOS SET command.  See the DOS
            Environment section in the CFG.ADD file for further details.  Each
            command that supports this switch is indicated below.  The
            variable name should be followed by at least one space to prevent
            following command line text from being included in the name.

 /,         Insert commas every three places in decimal numbers displayed on
            the screen.

 /?         Display an abbreviated command summary.  Available from command
            line only.  Not available in MultiCommand mode.

See the individual commands for additional switches.

╔══════════╗
║ COMMANDS ║                    Since version 2.30:  !-New, +-Changed/enhanced
╚══════════╝

Add [/@EnVar] [/Q] [/Bn] a b c ... . . . . . . . . . . . . .  Adds numbers + B
AM . . . . . . . . . . . . . . . .  Confirm time between midnight and noon   B
And [/@EnVar] [/Q] [/Bn] a b . . . . .  Returns logical AND of two numbers + B
ANSI . . . . . . . . . . . . . . . . Determine if ANSI driver is installed  CB
ASCII [/Bn] a b c ...  . . . . . . . . Convert numbers to ASCII characters   B
Beep [m n [, m n] ... ] [/Bn] [/N] . . . . . . . . . . .  Beep the speaker  CB
Blink  . . . . . . . . . . . . . . . . . . . . . . Set blinking characters  CB
Boot SubCommandName  . . . .  Modify CONFIG.SYS in memory during execution  C 
·     SubCommands:  NoError
Border [Color] . . . . . . . . . . . . . . . . . . Set screen border color  CB
Break  . . . . . . . . . . Determine status of DOS extended break checking   B
CanCopy FileSpec [d:]  . . Determine if room to copy files to target drive   B
Cecho [/I|/K] [/C|/N] "Fore [on] Back" String  . . . .  Echo text in color +CB
Cls [Fore [on] Back] . . .  Clear screen with foreground/background colors  CB
CodePage [/Q] [/@EnVar]  . . . . .  Determine the current system Code Page   B
ColdBoot SubCommandName [/V] . Perform equivalent of power-on system reset + B
·     SubCommands:  WaitFor, WaitTo, Verify
Color Fore [on] Back . . . . . . . . . . . .  Set ANSI driver output color  CB
Cols . . . . . . . . . . . . . . . . . .  Current displayed screen columns   B
ComBaud n [/Q] [/@EnVar] . . . . . . . . . .  Return serial port baud rate !CB
ComHide SubCommandName . . . . .  Hide/restore the COM port base addresses  C 
·     SubCommands:  Hide, Restore
Compare [/C] String1 String2 . . . . . . . . . . . . . Compare two strings   B
ComSet a [b] . . . . . . . . . . .  Set port base address in DOS data area !CB
ComSwap a b  . . . . . . . . . . . Swap designated COM port base addresses  CB
Convert a b [/Bn]  . . . . .  Converts numbers between number base systems   B
CoProc [/Q]  . . . . . . .  Determine Intel coprocessor installed (if any)   B
Country [n] [/Q] [/@EnVar] . . . . . . . . .  Return country specific info   B
CPU  . . . . . . . . . . . . . .  Determine Intel microprocessor installed   B
Cursor {SubCommandName|a b}  . . . . . . . . . . Set text mode cursor size  CB
·     SubCommands:  Default, Hide, Restore
Day [n]  . . . . . . . . . . . . . . . . . . . . .  Day of month (EL=1-31)   B
DESQview . . . . . . . . . . . . . . . .  Determine if DESQview is running   B
Device SubCommandName {Options}  . . . . . . . . . . .  Device driver info  CB
·     SubCommands:  Exist DeviceName, List, Rename DeviceName1 DeviceName2
Dir [/Q] [/@EnVar] [Path]  . . . . . . . . . . . . . . . Current directory   B
DirExist [d:][path]DirectoryName . . . . . . . . . .  Does directory exist   B
Display  . . . . . . . . . . . . . . . . . . . .  Display combination code   B
Div [/@EnVar] [/Q] [/Bn] a b . . . . . . . . . . . . . Divides two numbers + B
DosKey [/I] [/M] [/@EnVar] . .  Determine if DOSKEY installed or get input   B
DOSlocation SubCommandName . . . . . . .  Determine location of DOS kernel   B
·     SubCommands:  RAM, ROM, High, Low
DOSmajor . . . . . . . . . . . . . . . . . . . . . . . . Major DOS version   B
DOSminor . . . . . . . . . . . . . . . . . . . . . . . . Minor DOS version   B
DOSstartup [/Q] [/@EnVar]  . . .  Determines the drive DOS was booted from   B
DOSversion [/T]  . . . . . . . Composite DOS version [EL=(32*major)+minor]   B
Drive [/Q] [/@EnVar] . . . . . . . . . . . Determine current default drive   B
DriveExist d:  . . . . . . . . . . . . . . . . Determines valid DOS drives + B
DriveID d: [/F|/P] . . . . . . . . . . . . . . . . Identify the drive type ! B
DriveReady d:  . . . . . . . . .  Determine if a drive is ready for access + B
DriveSize [/Dn] [d:] . . . . . . . . . . .  Amount of total space on drive   B
DriveSpace [/Dn] [d:]  . . . . . . . . . . . Amount of free space on drive   B
DriveVolume [d:]VolumeName . . . Determine if volume exists on named drive + B
DS4  . . . . . . . . . . . . . Determine if Toshiba DeskStation IV present   B
Echo [/C|/N] [String]  . . .  Display String: ^ lower case toggle, ~ Cr/Lf  CB
EchoPause [/C|/N] [String] . . . Display String and pause, use Echo format  CB
EGA25 [/C] . . . . . . . . . . . . . . . . . . .  Set a 25 line EGA screen  CB
EGA43 [/C] . . . . . . . . . . . . . . . . . . .  Set a 43 line EGA screen +CB
Env SubCommandName [/Dn] [/1] [/2] . .  Examine/manipulate DOS environment + B
·     ErrorLevel SubCommands:  Free, Strings, Total, Usists   B
FileExt Filename [/Q] [/@EnVar]  . . . . . . . .  Extension of a file name   B
FileLines [d:][path]Filename [/Dn] . . . . . .  Counts lines in ASCII file ! B
FileName Filename [/Q] [/@EnVar] . . . . . . . Name portion of a file name   B
Files SubCommandName . . . . . . . . . . . . Examine DOS System File Table   B
·     SubCommands:  Blocks, Free, Margin, Orphan, Previous, Total, Used
FileSize [/Dn] [d:][path]Filename  . . . . . . . .  Size of specified file   B
FileText [d:][path]Filename [/C] "String"  . . . . . Find String in a file + B
FullYear . . . . . . . . . . . . . . . . . Year, last two digits (EL=0-99)   B
GamePort [/Q]  . . . . . . . . . . . . . . .  Test for game port installed ! B
GetKey [/C] [/F] [/S] ["String"] [Al] [Cl] [D[:]t,p] [E] [Fn] [Sn] [m] . .    
·      . . . . . . . . . . . . . . . . . . . . . . . .  Get keyboard input   B
Help [String]  . . . . . . . . . . . . . . . . . . .  Display program help + B
Hour [n] . . . . . . . . . . . . . . . . . . . . . . Hour of day (EL=0-23)   B
IACAfill String [/O] . . . . . . . . . . . . . . . .  Store String in IACA  C 
IACAread [/Q] [/@EnVar] [/C] [String]  . . . . . . Write String, then IACA   B
Input [/Q] [/@EnVar] . . . . . . . . . . . . . . . . . Get a line of input   B
Intense  . . . . . . . . . . . . . . . . . . Set intense background colors  CB
Keyboard . . . . . . . . . .  Determine if an enhanced keyboard is present   B
KeyBuffer SubCommandName . . . . .  Adjust size of the DOS keyboard buffer + B
·     SubCommands:  Set n, Status [/Dn]
KeyFlush . . . . . . . . . . . . . . . . . . . . . . Flush keyboard buffer  CB
KeyPause . . . . . . . . . . . .  Pause if Shift, Ctrl or Alt keys pressed  CB
KeyPress . . . . . . . .  Determine if keys are waiting in keyboard buffer   B
KeyStuff String  . . . . . . .  Inserts keys into the BIOS keyboard buffer  CB
LastBoot . . . . . . . . . . . .  Determine how the system was last booted   B
LastDrive [/Q] [/@EnVar] . . . . . . Determine last available drive letter   B
Left n String [/Q] [/@EnVar] [/C]  .  Return left "n" characters of String + B
Length String [/Q] [/@EnVar] . . . . . . . . . . . Return length of String   B
Locate r c . . . . . . . . . . . . .  Position cursor on active video page  CB
Lock [SubCommandName] [/C] . . . . . . . . . . . . . . . . Locks up system   B
·     SubCommands:  Disk, Net, Stack, System
Lower String [/Q] [/@EnVar]  . . . . . . . . . Return String in lower case   B
LptHide SubCommandName . . . . .  Hide/restore the LPT port base addresses  C 
·     SubCommands:  Hide, Restore
LptSet a [b] . . . . . . . . . . .  Set port base address in DOS data area !CB
LptSwap a b  . . . . . . . . . . . Swap designated LPT port base addresses +CB
MachineName [/Q] [/@EnVar] . . . . . .  Determine the network machine name   B
Memory SubCommandName [k] [/Dn] [/Q] [/@EnVar] . . .  Report system memory   B
·     SubCommands:  Base, Extended, Expanded, High, Main, UMB
Mid m n String [/Q] [/@EnVar] [/C] . . .  Return "n" char at "m" of String + B
Minute [n] . . . . . . . . . . . . . . . . .  Minute of the hour (EL=0-59)   B
Mod [/@EnVar] [/Q] [/Bn] a b . . . . . . .  Returns modulus of two numbers + B
Mono . . . . . . . . . . . . . . . . . . . Set a 25 line monochrome screen  CB
Month [n]  . . . . . . . . . . . . . . . . . . . . Month of year (EL=1-12)   B
Mouse  . . . . . . . . . . . . . . . . . Determine type of mouse installed   B
Mul [/@EnVar] [/Q] [/Bn] a b c ... . . . . . . . . . .  Multiplies numbers + B
Not [/@EnVar] [/Q] [/Bn] a . . . . . . . . . . Returns inverse of a number + B
Now DateFormat [/Q] [/@EnVar]  . . . . . .  Displays current date and time   B
Or [/@EnVar] [/Q] [/Bn] a b  . . . . . . Returns logical OR of two numbers + B
P5 SubCommandName  . . . . . . . . . . . . . . . . . . . P5 processor data !CB
·     SubCommands:  Model, Off, On, Step
Page [n] . . . . . . . . . . . . . . Display/change the video display page  CB
Pause  . . . . . . . . . . . . . . . . . . . . Pause with a prompt message  CB
PM . . . . . . . . . . . . . . . .  Confirm time between noon and midnight   B
Print  . . . . . . . . . . . . . . . . . Determine status of DOS PRINT.COM   B
PrintEcho SubCommandName . . . . . . . . . . . . .  Control DOS print echo !CB
·     SubCommands:  Off, On, Status, Toggle
Printer [n]  . . . . . . . . . . . . . . . . . .  Determine printer status   B
Protected  . . . . . .  Determine if 80286+ processor is in protected mode   B
PrtScr SubCommandName [/F] . . . . . .  Control BIOS print screen function +CB
·     SubCommands:  Off, On, Print, Status, Toggle
RamDrive [/S] [d:] [/Q] [/@EnVar]  . . . . . . Test if drive is a ramdrive   B
RandomFile [d:][path] [/Q] [/@EnVar] [/S]  . . . .  Create random filename   B
Rem [String] . . . . . . . . .  Provide REM statement for all DOS versions  C 
RenDir OldName NewName . . . . . . . . . . . . . . . . .  Rename directory   B
Right n String [/Q] [/@EnVar] [/C] . Return right "n" characters of String + B
ROMdate [/Q] [/@EnVar] . . . . . . . . . . . . .  Display date of ROM BIOS   B
ROMmodel [/Q] [/@EnVar]  . . . . . . . Display model bytes of the ROM BIOS   B
RootDir SubCommandName d: [/Q] [/@EnVar] .  Root directory characteristics   B
·     SubCommands:  Free, Total, Used
Rows . . . . . . . . . . . . . . . . . . .   Current displayed screen rows   B
Second . . . . . . . . . . . . . . . . . . . .  Second of minute (EL=0-59)   B
Share  . . . . . . . . . . . . . . . . . . .  Determine if SHARE is loaded   B
Shift-AND [Alt] [Ctrl] [Shift] . . . . . . Keyboard shift state "AND" test   B
ShiftLock [SubCommandName] . . .  Determine status of keyboard lock states   B
·     SubCommands:  Caps, Insert, Num, Scroll
Shift-OR [Alt] [Ctrl] [Shift]  . . . . . .  Keyboard shift state "OR" test   B
ShiftState . . . . . . . . . . . . . . . . Determine keyboard shift states   B
Stacker [d:] . . . . . . . . . . . . .  Identify Stacker driver and drives   B
Sub [/@EnVar] [/Q] [/Bn] a b c ... . . . . . . . . . . . Subtracts numbers + B
TaskSwitch [/Q] [/@EnVar]  . . . . .  Determine if task switcher installed   B
Toggle [N[+|-]] [C[+|-]] [S[+|-]] [/S] . . . . . . Set keyboard lock state +CB
Tones SubCommandName . . . . . . . . Rising and/or falling tones (Down/Up)  CB
·     SubCommands:  Down, Up, Over, Under
Typematic [m,n|Fast] . . . . . . Set the keyboard typematic rate and delay  CB
Upper String [/Q] [/@EnVar]  . . . . . . . . . Return String in upper case   B
Verify . . . . . . . . . . . . . . . . .  Current state of DOS Verify flag   B
Version SubCommandName . . . . . . . . . . . . .  Return requested version   B
·     SubCommands:  CFG, DOS, DPMI, EMS, VCPI, XMS
VGA25 [/C] . . . . . . . . . . . . . . . . . . .  Set a 25 line VGA screen +CB
VGA43 [/C] . . . . . . . . . . . . . . . . . . .  Set a 43 line VGA screen +CB
VGA50 [/C] . . . . . . . . . . . . . . . . . . .  Set a 50 line VGA screen +CB
VideoMode [n]  . . . . . . . . . . . . . . . . . . . .  Current video mode   B
WaitFor [mm:]ss [/N] . . . . . . . . . . . . . .  Delay for specified time +CB
WaitTo hh:mm[:ss] [/N] . . . . . . . . . Delay until specified time of day  CB
WarmBoot SubCommandName [/V] . Perform equivalent of keyboard system reset + B
·     SubCommands:  WaitFor, WaitTo, Verify
WeekDay [n]  . . . . . . . . . . . . . . .  Day of week (EL=0-6, 0=Sunday)   B
Window r c w h [b ["Fore [on] Back"]]  . . . . . . Draw a window on screen  CB
Windows  . . . . . . . . . . . . . . . . . Determine if Windows is running   B
Xor [/@EnVar] [/Q] [/Bn] a b . . . . .  Returns logical XOR of two numbers + B
Year . . . . . . . . . . . . . . . . . . . . . Years since 1980 (EL=0-119)   B
ZeroFile [/T] Filename . . . . . . . .  Create/truncate file to zero bytes   B

                         ***  End of CFG.HLP file  ***
